/** 服务器访问地址**/
var serverUrl = "http://f.xinyuyl.cn/xinyuyl-patient/"; //pom
var xyyl_doctor_server="${xyyl_doctor_server}";

/** 公共参数 **/
var templates;
var requestTimeOut = 20000; // 请求超时
var OPENID =utilModule.getStorage('openid');//微信授权openid
var USERID =utilModule.getStorage('userid');//userid
var USERIM =utilModule.getStorage('userim');//环信账号
var IMPWD="${im-easemobpasswd}";
var DOCTOR_IM_PREFFIX="${usernameprefix}";//医生端环信前缀
var imAppkey = "${im-appkey}"; //环信Appkey
var pageNo = 1;
var pageSize = 15;
var pageSmallSize = 5;
var cfgFileSize = 52428800; //文件大小限制

window.onload=function(){
	//获取openid失败，调整微信授权
	if(OPENID != null || USERID!=null) {
		if(utilModule.getQueryString("uid")!=null){
			
		}else{
			location.replace(serverUrl + "/homepage/oauth?scopeType=1");
		}
	}
}

var cnzzweb_Id="${cnzz_web_id}";
// 馨语医生 1273420438   // 馨语云  1273429000 
var	cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");    
var cnzz_text = "%3Cspan  style='display:none;'  id='cnzz_stat_icon_"+ cnzzweb_Id +"'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D"+ cnzzweb_Id +"%26show%3Dpic2' type='text/javascript'%3E%3C/script%3E";
document.write(unescape(cnzz_text));